package com.senlingspace.system.mapper;

import java.util.List;
import com.senlingspace.system.domain.SlkjEquipment;
import org.apache.ibatis.annotations.Param;

/**
 * 设备Mapper接口
 * 
 * @author SenlingSpace
 * @date 2024-09-26
 */
public interface SlkjEquipmentMapper 
{
    /**
     * 查询设备
     * 
     * @param id 设备主键
     * @return 设备
     */
    public SlkjEquipment selectSlkjEquipmentById(Long id);

    /**
     * 查询设备列表
     * 
     * @param slkjEquipment 设备
     * @return 设备集合
     */
    public List<SlkjEquipment> selectSlkjEquipmentList(SlkjEquipment slkjEquipment);

    /**
     * 新增设备
     * 
     * @param slkjEquipment 设备
     * @return 结果
     */
    public int insertSlkjEquipment(SlkjEquipment slkjEquipment);

    /**
     * 修改设备
     * 
     * @param slkjEquipment 设备
     * @return 结果
     */
    public int updateSlkjEquipment(SlkjEquipment slkjEquipment);

    /**
     * 删除设备
     * 
     * @param id 设备主键
     * @return 结果
     */
    public int deleteSlkjEquipmentById(Long id);

    /**
     * 批量删除设备
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSlkjEquipmentByIds(Long[] ids);

    List<SlkjEquipment> selectSlkjEquipment();

    SlkjEquipment selectSlkjEquipmentByName(@Param("EquipmentName") String EquipmentName);

    int updateEquipmentSum(@Param("num") Long num,@Param("equipmentId") Long equipmentId);
}
